package com.hnevc.guyao;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;

public class ClientDemo {

public static void main(String[] args) throws IOException {
	Socket socket =new Socket("10.1.65.3", 8082);
	
	InputStream in = socket.getInputStream();
	byte[] buffer = new byte[1024];
	int len = in.read(buffer);
	String data = new String(buffer,0,len);
	System.out.println(data);
}

}